package com.goldcn.order.dao;

import com.goldcn.order.dto.OrderCountDto;
import com.goldcn.order.model.CountOrder;
import com.goldcn.order.vo.OrderCountMoreVo;
import com.goldcn.order.vo.OrderCountVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CountOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CountOrder record);

    int insertSelective(CountOrder record);

    CountOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CountOrder record);

    int updateByPrimaryKey(CountOrder record);

    List<CountOrder> selectAll(@Param(value = "companyID") Long companyID);

    OrderCountVo selectByCondition(OrderCountDto orderCountDto);

    List<OrderCountMoreVo> selectGroupByBranchID(Map<String,Object>params);

    List<OrderCountMoreVo> selectGroupByTwoLevelBranchID(Map<String,Object>params);

    List<OrderCountMoreVo> selectGroupBySubbranchID(Map<String,Object>params);

    List<OrderCountMoreVo> selectGroupBySalesManagerID(Map<String,Object>params);

    int deleteByOID(Map<String,Object> params);

    int insertBatch(List<CountOrder> list);


}